package com.tyk.bookstore.front.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Schema(name = "Author", description = "作者")
@TableName("author")
@Data
public class AuthorDo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1;
    @Schema(description = "ID")
    @TableId(value = "id")
    private Long id;

    @Schema(description = "名字")
    @TableField("name")
    private String name;

}
